<?php


class M_delete Extends CI_Model
{
	private $admin_table = 'administrative_employees';
	private $teach_table = 'teaching_personnel';

	public function delete_admin($id)
	{
		$this->load->database();
		$this->db->where('ae_id',$id)->delete($this->admin_table);
		return $this->db->affected_rows() > 0 ? TRUE : FALSE;
	}

	public function delete_teacher($id)
	{
		$this->load->database();
		$this->db->where('tp_id',$id)->delete($this->teach_table);
		return $this->db->affected_rows() > 0 ? TRUE : FALSE;
	}










}